package ${entityPackage};

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * ${tableInfo.tableComment?if_exists}
 * @author CodeGenerator
 * @date ${date?string("yyyy-MM-dd HH:mm:ss")}
 */
@TableName("${tableInfo.tableName}")
public class ${tableInfo.entityName} implements Serializable {
    private static final long serialVersionUID = 1L;

<#list tableInfo.columns as column>
    /**
     * ${column.columnComment?if_exists}
     */
    <#if column.primaryKey>@TableId
    </#if>    private ${column.javaType} ${column.propertyName};<#if column_has_next>
</#if></#list>

<#list tableInfo.columns as column>
    /**
     * 获取${column.columnComment?if_exists}
     */
    public ${column.javaType} ${column.getterMethod}() {
        return this.${column.propertyName};
    }

    /**
     * 设置${column.columnComment?if_exists}
     */
    public void ${column.setterMethod}(${column.javaType} ${column.propertyName}) {
        this.${column.propertyName} = ${column.propertyName};
    }

</#list>
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("${tableInfo.entityName}{\n");
<#list tableInfo.columns as column>
        sb.append("    ${column.propertyName}='").append(${column.propertyName}).append("'\n");
</#list>
        sb.append("}");
        return sb.toString();
    }
}